
package Operatori;

import Visitor.Visitor;

public class Log extends Operator {
    public static String concatTermens(String a,String b){
		String aux;
		int nrP;
		nrP=b.charAt(0)=='(' ? 0:2;
		aux="log"+a+"(";
		if(nrP!=0)
			aux+="(";
		aux+=b;
		if(nrP!=0)
			aux+=")";
                aux += ")";
		return aux;
	}

	public void acceptVisitor(Visitor v){
		v.visit(this);
		}

	public String concatTermeni(String a,String b){
		String aux;
		int nrP;
		nrP=b.charAt(0)=='(' ? 0:2;
		aux="log"+a+"(";
		if(nrP!=0)
			aux+="(";
		aux+=b;
		if(nrP!=0)
			aux+=")";
                aux += ")";
		return aux;
	}
}
